//
//  EAMenuViewController.m
//  WhatToEat
//
//  Created by 方力 on 15/11/3.
//  Copyright © 2015年 Mac. All rights reserved.
//

#import "EAMenuViewController.h"

@interface EAMenuViewController ()

@end

@implementation EAMenuViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
        self.edgesForExtendedLayout=UIRectEdgeTop;
    
    [self.addTableBtn addTarget:self action:@selector(toTable) forControlEvents:UIControlEventTouchUpInside];
}


-(void)toTable
{

    EATabBarController * tbvc=(EATabBarController * )self.tabBarController;
    
    [tbvc.customTabBarView selectItem:1];
    
    tbvc.selectedIndex=1;
    

}

@end
